<template>
  <div @click="f1">
<button @click.stop="f2">dw</button>
     <a href="https://www.baidu.com" @click.prevent.stop>百度一下</a>
  </div>
</template>

<script>
export default {
methods: {
   f1(){
       console.log("f1");
   },f2(){
       console.log("f2");
   }
}
}
</script>

<style>

</style>